@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER", "NAME_SHADOWING", "UNNECESSARY_NOT_NULL_ASSERTION")
package uni.UNI0EAB015
import android.webkit.WebView
import io.dcloud.uniapp.*
import io.dcloud.uniapp.extapi.*
import io.dcloud.uniapp.framework.*
import io.dcloud.uniapp.runtime.*
import io.dcloud.uniapp.vue.*
import io.dcloud.uniapp.vue.shared.*
import io.dcloud.uts.*
import io.dcloud.uts.Map
import io.dcloud.uts.Set
import io.dcloud.uts.UTSAndroid
import io.dcloud.uniapp.extapi.getElementById as uni_getElementById
open class GenPagesIndexIndex : BasePage {
    constructor(__ins: ComponentInternalInstance, __renderer: String?) : super(__ins, __renderer) {
        onBeforeCreate(fun() {
            this.initWebView()
        }
        , __ins)
        onLoad(fun(_: OnLoadOptions) {
            this.initWebView()
        }
        , __ins)
        onReady(fun() {}, __ins)
        onMounted(fun() {
            this.initWebView()
        }
        , __ins)
    }
    @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
    override fun `$render`(): Any? {
        val _ctx = this
        val _cache = this.`$`.renderCache
        return _cE("view", _uM("class" to "container"), _uA(
            _cE("web-view", _uM("id" to "webview_container", "class" to "fullscreen-webview", "src" to _ctx.url), null, 8, _uA(
                "src"
            ))
        ))
    }
    open var url: String by `$data`
    @Suppress("USELESS_CAST")
    override fun data(): Map<String, Any?> {
        return _uM("url" to "http://140.80.1.107/dashboard/index.html")
    }
    open var initWebView = ::gen_initWebView_fn
    open fun gen_initWebView_fn() {
        val element = uni_getElementById("webview_container")
        val andriodWebview = element?.getAndroidView<WebView>()
        andriodWebview?.setInitialScale(100)
        val webSettings = andriodWebview?.getSettings()
        webSettings?.setUseWideViewPort(false)
        webSettings?.setLoadWithOverviewMode(false)
    }
    companion object {
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            _nCS(_uA(
                styles0
            ), _uA(
                GenApp.styles
            ))
        }
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return _uM("container" to _pS(_uM("width" to "100%", "height" to "100%")), "fullscreen-webview" to _pS(_uM("width" to "100%", "height" to "100%")))
            }
        var inheritAttrs = true
        var inject: Map<String, Map<String, Any?>> = _uM()
        var emits: Map<String, Any?> = _uM()
        var props = _nP(_uM())
        var propsNeedCastKeys: UTSArray<String> = _uA()
        var components: Map<String, CreateVueComponent> = _uM()
    }
}
